package cn.chinaunicom.fast.common.constant;

/**
 * @ProjectName: cloud
 * @Package: com.springboot.cloud.common.core.constant
 * @ClassName: AuthConstant
 * @Description: 认证常量类
 * @Author: wangjc
 * @CreateDate: 2020/4/7 0007 13:59
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/7 0007 13:59
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class AuthConstant {
    /**
     * 用户token的header
     */
    public static final String X_CLIENT_TOKEN_USER = "x-client-token-user";
    /**
     * 服务间调用的认证token
     * 用于验证是否合法服务调用, 通过秘钥加密后传输, 各个服务进行校验
     */
    public static final String X_CLIENT_TOKEN = "x-client-token";
    /**
     * 客户端验证秘钥
     */
    public static final String CLIENT_TOKEN_SECURE = "smart123456";
    /**
     * 系统管理员账户
     */
    public static final String SYSADMIN_USER = "system";
    /**
     * jwt中的客户端id
     */
    public static final String JWT_CLIENT_ID = "client_id";
    /**
     * jwt的用户登录名
     */
    public static final String JWT_USERNAME = "username";
    /**
     * jwt的用户信息
     */
    public static final String JWT_SMART_USER = "smart_user";

    public static final String JWT_AUTHORITIES = "authorities";
    /**
     * app的客户端id
     */
    public static final String APP_CLIENT_ID = "app_client";
    /**
     * pc客户端
     */
    public static final String PC_CLIENT_ID = "pc_client";
    /**
     * 微信客户端
     */
    public static final String WECHAT_CLIENT_ID = "wechat_client";
    /**
     * Authorization认证开头是"bearer "
     */
    public static final String BEARER = "Bearer ";
    /**
     * 客户端feign
     */
    public static final String X_CLIENT_FEIGN ="x_client_feign";
    /**
     * 工作人员
     */
    public static final String USER_TYPE_SYS = "sys";
    /**
     * 群众
     */
    public static final String USER_TYPE_PUBLIC = "pub";
    /**
     * 用户类型 sys: 工作人员 pub: 群众
     */
    public static final String USER_TYPE = "userType";
    /**
     * 能力平台-认证token的头
     */
    public static final String OPEN_GATEWAY_AUTH = "X-CU-AccessToken-MMO";
    /**
     * 用戶中心认证token的头
     */
    public static final String USER_CENTER_AUTH = "X-CU-ACCESS";
    /**
     * 门户管理员
     */
    public static final String USER_BELONG_SYSTEM = "0";
    /**
     * 社区用户
     */
    public static final String USER_BELONG_COMMUNITY = "1";
    /**
     * 物业用户
     */
    public static final String USER_BELONG_PROPERTY = "2";
    /**
     * 其他用户
     */
    public static final String USER_BELONG_OTHER = "99";

}
